package org.jeecg.modules.demo.com.kunpeng.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.demo.com.kunpeng.entity.OaAdmin;
import org.jeecg.modules.demo.com.kunpeng.mapper.OaAdminMapper;
import org.jeecg.modules.demo.com.kunpeng.service.IOaAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
@Slf4j
public class OaAdminServiceImpl extends ServiceImpl<OaAdminMapper, OaAdmin> implements IOaAdminService {

    @Autowired
    private OaAdminMapper oaAdminMapper;

    /**
     * 根据id获取当前登录人信息
     * @param id
     * @return
     */
    @Override
    public OaAdmin selectOaAdminById(Integer id) {
        OaAdmin oaAdmin = oaAdminMapper.selectOaAdminDetailById(id);
        return oaAdmin;
    }
}
